<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<link rel="stylesheet" href="resources/mytheme/css/style.css">
<title>Edit My Account</title>
</head>
<body>
<div id=header2>

	<div id="logo">
		<img src="resources/mytheme/Logo.png" alt="RentFlix">
	</div>
	
	<div id="searchNav">
		<form name="inputForm" method="get">
			<input class="searchBox" type="text" name="searchBox" placeholder="Search for Movies..." onkeyup="fastSearch()">
			<input class="searchButton" type="submit" value="Search">
			<br>
			<!-- <input class="checkbox" type="checkbox" name="desc" value="show">Show Description -->
		</form>
	</div>
	
	<div id="navBar">
		<ul>
		    <li><a href="/MovieProject/browse">Movies</a></li>
		    <li><a href="/MovieProject/browse?genre=Family&rating=&decade=">Kids</a></li>
		    <li><a href="/MovieProject/viewqueue">Queue</a></li>
		</ul>
	</div>
	
	<div id="loginBar">
		<ul>
			<li><div id="signoutform"><form action="signout" method="post" name="loutform"><input class="lastlink" type="submit" value="Sign Out" style="text-transform:capitalize;"></form></div></li>
			<li><a class="firstlink"href="/MovieProject/MyAccount">My Account</a></li>
			
		</ul>
	</div>
	
</div>

<div id="body">
<br><br><br><br>
	<h1>My Account Information</h1>

	My Account

	

		<form:form id="passwordform" action="UpdateSuccess" method="post" commandName="UpdateUserInfo">
			<table>
				<tr>
					<td width="120 px">First Name:</td>
					<td width="120 px"><input type="text" name="fName"
						value="${currentUser.firstName}"></td>
				</tr>
				<tr>
					<td width="120 px">Last Name:</td>
					<td width="120 px"><input type="text" name="lName"
						value="${currentUser.lastName}"></td>
				</tr>
				<tr>
					<td width="120 px">Email Address:</td>
					<td width="120 px"><input type="text" name="email"
						value="${currentUser.email}"></td>
				</tr>
				<tr>
					<td width="120 px">Address</td>
					<td width="120 px"><input type="text" name="address"
						value="${currentUser.address}"></td>
				</tr>
				<tr>
					<td width="120 px">City</td>
					<td width="120 px"><input type="text" name="city"
						value="${currentUser.city}"></td>
				</tr>
				<tr>
					<td width="120 px">State</td>
					<td width="120 px"><input type="text" name="state"
						value="${currentUser.state}"></td>
				</tr>
				<tr>
					<td width="120 px">Zip</td>
					<td width="120 px"><input type="text" name="zip"
						value="${currentUser.zip}"></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="Submit Change"></td>
				</tr>


			</table>
		</form:form>
	
</div>

<div id="footer">
	<div id="foota">
		<p>Get Help</p>
		<ul>
		  <li><a href="#">FAQ</a></li>
		  <li><a href="#">Help Center</a></li>
		  <li><a href="#">Account</a></li>
		  <li><a href="#">Questions</a></li>
		</ul>
	</div>

	<div id="footb"><p>Our Company</p>
	
		<ul>
		  <li><a href="#">About us </a></li>
		  <li><a href="#">Reviews  </a></li>
		  <li><a href="#">Jobs  </a></li>
		  <li><a href="#">Terms of Use</a></li>
		</ul>
	</div>
	
	<div id="footc"><p>Getting Started</p>
		<ul>
		  <li><a href="#">Free Trail Offer Details  </a></li>
		  <li><a href="#"> Redeem Your Gift</a></li>
		</ul>
	</div>
</div>

</body>
</html>